<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Upload Page</title>
    <link rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
    <style>
        .main {
            margin-top: 15%;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="row">
            <div class="col-md-6 col-md-offset-3 main" role="main">
                <pre>
                    _____               .__.__
                   /     \   ___________|__|__|
                  /  \ /  \ /  _ \_  __ \  |  |
                 /    Y    (  <_> )  | \/  |  |
                 \____|__  /\____/|__|  |__|__|
                         \/
                </pre>
                <form action="/upload/file" method="post" enctype="multipart/form-data">
                    <div class="form-group">
                      <label for="groupId">GroupId</label>
                      <input type="text" class="form-control" name="groupId" id="groupId" placeholder="GroupId" required autofocus>
                    </div>
                    <div class="form-group">
                        <label for="artifactId">ArtifactId</label>
                        <input type="text" class="form-control" name="artifactId" id="artifactId" placeholder="ArtifactId" required autofocus>
                    </div>
                    <div class="form-group">
                        <label for="version">Version</label>
                        <input type="text" class="form-control" name="version" id="version" placeholder="Version" required autofocus>
                      </div>
                    <div class="form-group">
                      <label for="jar">Jar</label>
                      <input type="file" name="jar" id="jar" required autofocus>
                      <p class="help-block">The file you want to upload which suffix is 'jar'.</p>
                    </div>
                    <div class="form-group">
                        <label for="pom">Pom</label>
                        <input type="file" name="pom" id="pom" required autofocus>
                        <p class="help-block">The jar's configuration which name's 'pom.xml'.</p>
                      </div>
                    <button type="submit" class="btn btn-default">Submit</button>
                </form>
            </div>
        </div>
    </div>

    <script type="text/javascript" th:src="@{/js/upload.js}"></script>
</body>
</html>